home *** CD-ROM | disk | FTP | other *** search
/ PC Zone 96 / PC Zone #096.7z / Dppcz1200.mdf / Demos / Gunlok / data1.cab / Program_Executable_Files / scripts / wall_turret.gsh < prev    next >
Text File  |  2000-09-09  |  2KB  |  63 lines

  1. // defines the Wall Turret
  2. ////////////////////////////////////////////////////////////////////////////////////
  3.  
  4. // start wrapper - prevent multiple inclusions or recursive inclusions
  5.  
  6. //(this currently causes 'unrecognized preprocessor directive' warnings, until implemented)
  7. #ifndef INCLUDED_WALL_TURRET_GSH
  8. #define INCLUDED_WALL_TURRET_GSH
  9.  
  10. #include "defaults.gsh"
  11. #include "lasers.gsh"
  12.  
  13. ////////////////////////////////////////////////////////////////////////////////////
  14.  
  15. hierarchy Hcy_Wall_Turret
  16. {
  17.     file "units\wall turret.RIF"
  18.     name "Wall Turret"
  19.     hotspot "Dum Flash"
  20. }
  21.  
  22. character Chr_Wall_Turret : Chr_DefaultBaddie
  23. {
  24.     turning speed   0.5
  25.     walking speed   0    // doesn't move
  26.     weapon            enemy laser weak
  27.     strength        6
  28.     aim                0    // spot on!
  29.     height            1.6    // for targeting purposes
  30.     sight angle        180    // in degrees
  31.     sight range        12    // in metres
  32.     hearing range    22    // in metres
  33.     aggression        1    // from 0 to 1
  34.     gun yaw angle    90    // in degrees
  35.     elevation angle 45    // in degrees
  36.     can turn        no
  37. }
  38.  
  39. // msoke trail from the barrel when firing
  40. pgenerator Pgn_Wall_Turret
  41. {
  42.     type fire
  43.     life infinite
  44.     rate 4
  45.     // stream direction
  46.     x 0 y 0 z 0
  47.     // particle colour
  48.     red 0.1 green 0.1 blue 0.1 alpha 0.7
  49. }
  50.  
  51. role Rol_Wall_Turret : Rol_DefaultRobot
  52. {
  53.     pgen            Pgn_Wall_Turret
  54.     shape            Hcy_Wall_Turret
  55.     character        Chr_Wall_Turret
  56.     ai                popup
  57.     identifier        "Wall_Turret"
  58. }
  59.  
  60. ////////////////////////////////////////////////////////////////////////////////////
  61.  
  62. // end wrapper - for preventing multiple or recursive inclusions
  63. #endif // !INCLUDED_WALL_TURRET_GSH